package com.plug.repository;

import com.plug.entity.PlugTaskState;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PlugTaskStateMapper {
    int deleteByPrimaryKey(Long id);

    int insert(PlugTaskState record);

    int insertSelective(PlugTaskState record);

    PlugTaskState selectByPrimaryKey(Long id);

    PlugTaskState selectByName(String taskName);

    int updateByPrimaryKeySelective(PlugTaskState record);

    int updateByPrimaryKey(PlugTaskState record);

    List<Map<String,Object>> findByPage(@Param("offset")Integer offset,@Param("limit")Integer limit);

    int findTotal();

    int deleteBatch(List<Integer> list);

    List<Integer> selectIdByname(@Param("taskNames")List<String> taskNames);
}